package com.yzd.xander.service.impl;

import com.yzd.xander.dao.UserDao;
import com.yzd.xander.entity.Users;
import com.yzd.xander.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by YE on 2018-06-07.
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;
    @Override
    public Users selectUser(Users user) {
        return userDao.selectUser(user);
    }

    @Override
    public boolean isExist(String username) {
        return userDao.isExist(username);
    }

    @Override
    public int addUser(Users user) {
        return userDao.addUser(user);
    }

}
